import java.util.Scanner;

/**
 * @author: gao
 * @create-date: 2025/5/21 14:10
 */

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            double weight = in.nextDouble();
            double height = in.nextDouble();

            if (weight > 727 || weight <= 0.0 || height > 2.72 || height <= 0.0) {
                System.out.println("input out of range");
            } else {
                double BMI = weight / (height * height);

                if (BMI >= 0 && BMI < 18.5) {
                    System.out.println("thin");
                } else if (BMI >= 18.5 && BMI < 24) {
                    System.out.println("fit");
                } else if (BMI >= 24 && BMI < 28) {
                    System.out.println("overweight");
                } else if (BMI >= 28) {
                    System.out.println("fat");
                }
            }
        }
    }
}